package com.xwb.domain;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

//TODO 引入lombok依赖后，@Data可以代替实体类的get set tostring 无参构造方法等方法 但不包括有参构造方法，简化实体类开发
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("user")
public class User extends Member implements Serializable {
    @TableField("user_name")
    @JsonProperty("user_name")
    private String userName;
    @TableId
    @TableField("user_id")
    private String userId; // Primary Key
    private String password;
    private String userClass;
    @TableField("user_phoneNumber")
    private String userPhoneNumber;
    private String userCollege;

}
